import { Injectable } from '@angular/core';
import {Observable} from "rxjs";
import {Http} from "@angular/http";

@Injectable()
export class ChartsService {

  constructor(public http: Http) { }
  public charts = [];

  add(chart: any){
    this.charts.push(chart)
  }

  get(){
   return this.charts
  }

  getReportById(id: string,type: number): Observable<any>{
    return this.http.get("/api/report/baseData?id="+id+"&type="+type);
  }
}
